package net.itzyz.phone;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class MainActivity extends Activity {
	
	private Button sendMsgBtn;
	private Button callBtn;
	private Button dailyBtn;
	private Button musicBtn;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.main);
		sendMsgBtn = (Button) findViewById(R.id.sendMsgButton);
		callBtn = (Button) findViewById(R.id.callButton);
		dailyBtn = (Button) findViewById(R.id.dailyButton);
		musicBtn = (Button) findViewById(R.id.musicButton);
		sendMsgBtn.setOnClickListener(new View.OnClickListener(){
			public void onClick(View v) {
				Intent intent = new Intent();
				intent.setClass(MainActivity.this, SendMessageActivity.class);
				startActivity(intent);
			}			
		});
		
		callBtn.setOnClickListener(new View.OnClickListener(){
			public void onClick(View v) {
				Intent intent = new Intent();
				intent.setClass(MainActivity.this, TestPhoneActivity.class);
				startActivity(intent);
			}
			
		});
		dailyBtn.setOnClickListener(new View.OnClickListener(){
			public void onClick(View v) {
				Intent intent = new Intent();
				intent.setClass(MainActivity.this, DailyActivity.class);
				startActivity(intent);
			}
			
		});

		musicBtn.setOnClickListener(new View.OnClickListener(){
			public void onClick(View v) {
				Intent intent = new Intent();
				intent.setClass(MainActivity.this, MusicActivity.class);
				startActivity(intent);
			}
			
		});
	}
}
